package com.code.day20;

import java.io.FileWriter;
import java.io.IOException;

public class Demo11IOEX {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("D:\\java-code\\java-full-stack\\01-java-base\\src\\com\\code\\day20\\file\\demo4.txt");
        try (fileWriter) {
            fileWriter.write("你好你好你好");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
